#ifndef __PACKET_H__
#define __PACKET_H__


#include <string>

using std::string;

namespace rocket 
{

class tlv;
class packet
{
public:
    packet() ;
    packet(int type,int length,string data);
    ~packet() ;
    void set_type(int type);
    void set_length(int length);
    void set_data(char *data);
    int get_type();
    int get_length();
    string get_data();
    void print();
private:
    int _type;
    int _length;
    string _data;
};

}


#endif // __PACKET_H__

